<input type="hidden" name="themeid" value="{$themeid}" />


<div class="form-group">
    <div class="col-sm-12">
        <table style='width:100%;'>
            <tr>
                <td style='width:320px;padding:10px;background-color: #fff;' valign='top'>
                    <div id='poster'>
                        {if !empty($item['bg'])}
                        <img src='{php echo tomedia($item['bg']);}' class='bg'/>
                             {/if}
                             {if !empty($data)}
                             {loop $data $key $d}

                             <div class="drag" type="{$d['type']}" index="{php echo $key+1;}" style="zindex:{php echo $key+1;};left:{$d['left']};top:{$d['top']};
                             width:{$d['width']};height:{$d['height']}" 
                             src="{$d['src']}" size="{$d['size']}" color="{$d['color']}"
                             > 
                            {if $d['type']=='qr'}
                            <img src="{$_G['URL']['APP_RESOURCE_FOX']}images/qr.jpg" />
                            {elseif $d['type']=='head'}
                            <img src="{$_G['URL']['APP_RESOURCE_FOX']}images/head.jpg" />
                            {elseif $d['type']=='img' || $d['type']=='thumb'}
                            <img src="{php echo empty($d['src'])?$_G['URL']['APP_RESOURCE_FOX'].'images/img.jpg':tomedia($d['src']);}" />
                            {elseif $d['type']=='nickname'}
                            <div class=text style="font-size:{$d['size']};color:{$d['color']}">昵称</div> 
                            {/if}
                            <div class="rRightDown"> </div><div class="rLeftDown"> </div><div class="rRightUp"> </div>
                            <div class="rLeftUp"> </div><div class="rRight"> </div><div class="rLeft"> </div><div class="rUp"> </div><div class="rDown"></div>
                        	</div>
                        {/loop} 
                        {/if}
                    </div>

                </td>
                <td valign='top' style='padding:10px;'>
                    <div class='panel panel-default'>
                        <div class='panel-body'>
                            {if $status == 0}
							<div class="form-group">
								<label class="col-sm-2 control-label"><span class="require">* </span>等待信息</label>
								<div class="col-sm-9 col-xs-12">
									<input type="text" class="form-control" name="waittips" value="{if empty($item['waittips'])}正在生成海报{else}{$item['waittips']}{/if}">
								</div>
							</div>
                            {else}
                            <div class="form-group">
                                <label class="col-sm-1"></label>
                                <label class="col-sm-11" style="color:red">说明：活动首图海报设置后，打开员工的链接，将替换活动页面的首图，改为带有员工的二维码的海报图,若为轮播将在最后加入此海报</label>
                            </div>
                            {/if}
                            <div class="form-group" id="bgset">
                                <label class="col-sm-2 control-label">背景图片</label>
                                <div class="col-sm-9 col-xs-12">
                                    {php echo view_form_field_image('bg',$item['bg']);}
                                    <span class='help-block'>背景图片尺寸: 640 * 1008</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">海报元素</label>
                                <div class="col-sm-9 col-xs-12">
                                    <button class='btn btn-default btn-com' type='button' data-type='head' >头像</button>
                                    <button class='btn btn-default btn-com' type='button' data-type='nickname' >昵称</button>
                                    <button class='btn btn-default btn-com' type='button' data-type='qr' >二维码</button>
                                    <button class='btn btn-default btn-com' type='button' data-type='img' >图片</button>
                                    <span id="goodsparams" {if $item['type']!=3}style="display:none"{/if}>
                                          <br />
                                        <button class='btn btn-default btn-com' type='button' data-type='title' >商品名称</button>    
                                        <button class='btn btn-default btn-com' type='button' data-type='thumb' >商品图片</button>    
                                        <button class='btn btn-default btn-com' type='button' data-type='marketprice' >商品现价</button>    
                                        <button class='btn btn-default btn-com' type='button' data-type='productprice' >商品原价</button>    
                                    </span>
                                </div>
                            </div>
                            <div id='qrset' style='display:none'>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">二维码尺寸</label>
                                    <div class="col-sm-9 col-xs-12">
                                        <select id='qrsize' class='form-control'>
                                            <option value='1'>1</option>
                                            <option value='2'>2</option>
                                            <option value='3'>3</option>
                                            <option value='4'>4</option>
                                            <option value='5'>5</option>
                                            <option value='6'>6</option>
                                        </select>
                                    </div>

                                </div>
                            </div>

                            <div id='nameset' style='display:none'>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">昵称颜色</label>
                                    <div class="col-sm-9 col-xs-12">
                                        {php echo view_form_field_color('color');}
                                    </div>

                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">昵称大小</label>
                                    <div class="col-sm-4">
                                        <div class='input-group'>
                                            <input type="text" id="namesize" class="form-control namesize" placeholder="例如: 14,16"  />
                                            <div class='input-group-addon'>px</div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group" id="imgset" style="display:none">
                                <label class="col-sm-2 control-label">图片设置</label>
                                <div class="col-sm-9 col-xs-12">
                                    {php echo view_form_field_image('img');}
                                </div>
                            </div>

                        </div>
                    </div>
                </td>
            </tr>
        </table>
    </div>
</div>